﻿
function ProgressBar_AjaxUnder_Initialize (controlId) {

    $("#" + controlId).progressbar({ value: false });

    $("#" + controlId).removeClass("ui-corner-all");

    $("#" + controlId).addClass("ui-corner-bottom");

    $("#" + controlId).css("position", "fixed");

    $("#" + controlId).css("height", "4px");

    $("#" + controlId).hide();

}


function ProgressBar_AjaxUnder_Toggle(controlId) {

    var element = $("#" + controlId)[0];

    element.disabled = !element.disabled;

    $("#" + controlId + "_ProgressBar").toggle();

}

function ProgressBar_AjaxUnder_On(controlId) {

    var element = $("#" + controlId)[0];

    element.disabled = true;

    $("#" + controlId + "_ProgressBar").show();

}


function ProgressBar_AjaxUnder_Off(controlId) {

    var element = $("#" + controlId)[0];

    element.disabled = false;

    $("#" + controlId + "_ProgressBar").hide();

}


